/**
 * This Class builds basic YQL ( Yahoo! Query Language ) Statements
 * 
 */
package yqlweb.util;



/**
 * @author fabianmoronzirfas
 *
 */
public class YQLStatements {
	
	
	private static String yqlPlaceStatement;
	private static String yqlFlickrStatement;

	
	public static String makePlacesStat(String incomingTXT){
		yqlPlaceStatement="SELECT * FROM geo.placemaker WHERE documentContent = \""
			+incomingTXT
			+"\" AND documentType=\"text/plain\"";
		
		return yqlPlaceStatement;
	}
	
	public static String makeFlickrStat(String keyWord, int limit){		
		yqlFlickrStatement="select * from flickr.photos.search where text = '" + keyWord + "' limit "+limit;
		
		return yqlFlickrStatement;
	}
	
}
